﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UploadFileTest.aspx.cs"
    Inherits="PeekWebApp.Tester.UploadFileTest" %>

<%@ Register Assembly="PeekEditor" Namespace="PeekEditor" TagPrefix="PeekEditor" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table>
            <tr>
                <td>
                    标题
                </td>
                <td>
                    <asp:TextBox ID="txtTitle" runat="server" />
                </td>
            </tr>
            <tr>
                <td>
                    省
                </td>
                <td>
                    <asp:DropDownList ID="ddlProvince" runat="server">
                        <asp:ListItem>北京</asp:ListItem>
                        <asp:ListItem>天津</asp:ListItem>
                        <asp:ListItem>香港</asp:ListItem>
                        <asp:ListItem>澳门</asp:ListItem>
                        <asp:ListItem>台湾</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                    区
                </td>
                <td>
                    <asp:DropDownList ID="ddlCity" runat="server">
                        <asp:ListItem>东城</asp:ListItem>
                        <asp:ListItem>柳村</asp:ListItem>
                        <asp:ListItem>铜锣湾</asp:ListItem>
                        <asp:ListItem>澳门街</asp:ListItem>
                        <asp:ListItem>台北</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                    简介
                </td>
                <td>
                    <PeekEditor:CKEditorControl ID="editorJianJie" runat="server" />
                </td>
            </tr>
            <tr>
                <td>
                    图片
                </td>
                <td>
                    <table>
                        <tr>
                            <td>
                                缩略图：
                            </td>
                            <td colspan="2">
                                <asp:FileUpload ID="fudSmall" runat="server" />
                            </td>
                            <td rowspan="3"><asp:Button ID="btnUpload" runat="server" Text="上传" /></td>
                        </tr>
                        <tr> <td>原图：</td><td colspan="2"> <asp:FileUpload ID="fudNormal" runat="server" /></td></tr>
                        <tr> <td>预览图：</td><td colspan="2"> <asp:FileUpload ID="fudBig" runat="server" /></td></tr>
                    </table>
                   
                    
                </td>
            </tr>
            <tr>
            <td>图片列表</td>
                <td >
                    <asp:DataList ID="dlImg" runat="server" Width="660" RepeatColumns="5" RepeatDirection="Horizontal">
                        <ItemTemplate>
                           <a href='<%#Eval("Small") %>'> <asp:Image ID="imgSmall" runat="server" Width="200" Height="200" ImageUrl='<%#Eval("Small") %>' /></a>
                            <a href='<%#Eval("Normal") %>'><asp:Image ID="imgNormal" runat="server" Width="200" Height="200" ImageUrl='<%#Eval("Normal") %>'/></a>
                            <a href='<%#Eval("Big") %>'><asp:Image ID="imgBig" runat="server" Width="200" Height="200" ImageUrl='<%#Eval("Big") %>'/></a>
                             <asp:Button ID="btnDelete" runat="server" CommandArgument='<%#Eval("Id") %>' CommandName="delete" Text="删除" />                              
                        </ItemTemplate>
                    </asp:DataList>
                </td>
            </tr>
            <tr>
                <td colspan="2" align="center">
                    <asp:Button ID="btnSave" runat="server" Text="保 存" OnClick="btnSave_Click" />
                </td>
            </tr>
        </table>
    </div>

    </form>
</body>
</html>
